package com.wzdigit.wms.basic.mapper.core.basic;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.basic.WarehouseAttr;
import com.wzdigit.wms.basic.client.response.basic.WarehouseAttrResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库属性 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-12-28
 */
@MyBatisRepository
public interface WarehouseAttrMapper extends BaseMapper<WarehouseAttr> {
	
	List<WarehouseAttrResponse> selectAllByWhsId(@Param("whsId") Integer whsId);
	
	WarehouseAttr selectOneByAttrAndWhsId(@Param("attr") String attr, @Param("whsId") Integer whsId);
	
	int deleteByWhsIdAndNotId(@Param("whsId") Integer whsId, @Param("notDelIds") List<Integer> notDelIds);
	
	int deleteByWhsId(@Param("whsId") Integer whsId);
	
    int deleteByPrimaryKey(Integer whsAttrId);

    int insert(WarehouseAttr record);

    WarehouseAttr selectByPrimaryKey(Integer whsAttrId);

    int updateByPrimaryKeySelective(WarehouseAttr record);

    int updateByPrimaryKey(WarehouseAttr record);
}